package Demo2;

public class Person {
    
    private Genders sex;

    public Genders getSex() {
        return sex;
    }

    public void setSex(Genders sex) {
        this.sex = sex;
    }

    public static void main(String[] args) {
        Person person = new Person();
        person.setSex(Genders.MAN);
        System.out.println(person.getSex());
        System.out.println(Genders.FEMALE);
    }

}
